﻿using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.Web;
using Acaweb.Model.Entities;

namespace Acaweb.Servicios.Contracts
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IEstudiantesService" in both code and config file together.
    [ServiceContract]
    public interface IVotosService
    {
        [WebInvoke(Method = "POST", UriTemplate = "Create", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        [OperationContract]
        void Create(Votos Voto);

        [WebInvoke(Method = "POST", UriTemplate = "GetAll", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        [OperationContract]
        List<Votos> GetAll();

        [WebInvoke(Method = "POST", UriTemplate = "GetByAspirantes", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        [OperationContract]
        List<Votos> GetByAspirantes(string Aspirante);

        [WebInvoke(Method = "POST", UriTemplate = "IsHabilitado", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        [OperationContract]
        bool IsHabilitado();

        [WebInvoke(Method = "POST", UriTemplate = "HackCreate", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        [OperationContract]
        void HackCreate(Votos Voto);
    }
}